#ifndef ITEMCONTROLLER_H
#define ITEMCONTROLLER_H

#include <QList>
#include "core/basemodel.h"
#include "core/basecontroller.h"
#include "core/itemmodel.h"

class ItemController : public BaseController
{
    Q_OBJECT
public:
    explicit ItemController(QObject *parent = 0);
    QList<BaseModel *> getAll();
    QList<BaseModel *> getBestsellersForMonth(QDate month);
    QList<BaseModel *> getAllDwindling();
    ItemModel *getItemById(int id);
    void addItem(ItemModel *item);
    void updateItem(ItemModel *item);

signals:

public slots:

};

#endif // ITEMCONTROLLER_H
